import request from '@/utils/request'
// ----------------红包 start--------------------
// 定时红包获取列表数据（两个）
export function listTimingData(data) {
  return request({
    url: '/redPacket/listTimingData',
    method: 'post',
    data
  })
}
// 新增定时红包
export function saveTimingData(data) {
  return request({
    url: '/redPacket/saveTimingData',
    method: 'post',
    data
  })
}
// 修改定时红包
export function updateTimingData(data) {
  return request({
    url: '/redPacket/updateTimingData',
    method: 'post',
    data
  })
}
// 删除定时红包
export function deleteTimingData(data) {
  return request({
    url: '/redPacket/deleteTimingData',
    method: 'post',
    data
  })
}
// 定时红包开关
export function updateTimingStatus(data) {
  return request({
    url: '/redPacket/updateTimingStatus',
    method: 'post',
    data
  })
}
// 获取参与人名单
// envelopeId 红包id envelopeType 红包类型
export function getReceiveList(data) {
  return request({
    url: '/redPacket/getReceiveList',
    method: 'post',
    data
  })
}
// 获取所有的前端用户
export function getAllWebUser(data) {
  return request({
    url: '/redPacket/getAllWebUser',
    method: 'post',
    data
  })
}
// 奖励红包获取列表数据
export function listRecoveryData(data) {
  return request({
    url: '/redPacket/listRecoveryData',
    method: 'post',
    data
  })
}
// 新增奖励红包
export function saveRecoveryData(data) {
  return request({
    url: '/redPacket/saveRecoveryData',
    method: 'post',
    data
  })
}
// 修改奖励红包
export function updateRecoveryData(data) {
  return request({
    url: '/redPacket/updateRecoveryData',
    method: 'post',
    data
  })
}
// 删除奖励红包
export function deleteRecoveryData(data) {
  return request({
    url: '/redPacket/deleteRecoveryData',
    method: 'post',
    data
  })
}
// 奖励红包开关
export function updateRecoveryStatus(data) {
  return request({
    url: '/redPacket/updateRecoveryStatus',
    method: 'post',
    data
  })
}
// 活动红包获取列表数据
export function listActivityData(data) {
  return request({
    url: '/redPacket/listActivityData',
    method: 'post',
    data
  })
}
// 新增活动红包
export function saveActivityData(data) {
  return request({
    url: '/redPacket/saveActivityData',
    method: 'post',
    data
  })
}
// 修改活动红包
export function updateActivityData(data) {
  return request({
    url: '/redPacket/updateActivityData',
    method: 'post',
    data
  })
}
// 删除活动红包
export function deleteActivityData(data) {
  return request({
    url: '/redPacket/deleteActivityData',
    method: 'post',
    data
  })
}
// 活动红包开关
export function updateActivityStatus(id) {
  return request({
    url: '/redPacket/updateActivityStatus',
    method: 'post',
    data: { id }
  })
}
// 注册红包保存数据
export function setRegisterData(data) {
  return request({
    url: '/redPacket/setRegisterData',
    method: 'post',
    data
  })
}

// 注册红包获取数据
export function getRegisterTotal() {
  return request({
    url: '/redPacket/getRegisterTotal',
    method: 'post'
  })
}

// 注册红包获取数据
export function getRegisterData() {
  return request({
    url: '/redPacket/getRegisterData',
    method: 'post'
  })
}

// 注册红包获取开关
export function getRegisterStatus() {
  return request({
    url: '/redPacket/getRegisterStatus',
    method: 'post'
  })
}
// 注册红包保存开关
export function setRegisterStatus(data) {
  return request({
    url: '/redPacket/setRegisterStatus',
    method: 'post',
    data
  })
}
// 玩法结束获取
export function getDescribe(data) {
  return request({
    url: '/redPacket/getDescribe',
    method: 'post',
    data
  })
}
// 玩法结束保存
export function setDescribe(data) {
  return request({
    url: '/redPacket/setDescribe',
    method: 'post',
    data
  })
}
// 签到红包获取数据
export function getSignData() {
  return request({
    url: '/redPacket/getSignData',
    method: 'post'
  })
}
// 签到红包保存数据
export function setSignData(data) {
  return request({
    url: '/redPacket/setSignData',
    method: 'post',
    data
  })
}
// 签到红包获取开关
export function getSignStatus(data) {
  return request({
    url: '/redPacket/getSignStatus',
    method: 'post',
    data
  })
}
// 签到红包保存开关
// status
export function setSignStatus(data) {
  return request({
    url: '/redPacket/setSignStatus',
    method: 'post',
    data
  })
}
// 签到红包获取列表数据
export function listSignData(data) {
  return request({
    url: '/redPacket/listSignData',
    method: 'post',
    data
  })
}

// 多码红包获取列表数据
export function listSingleData(data) {
  return request({
    url: '/redPacket/listSingleData',
    method: 'post',
    data
  })
}
// 新增多码红包
export function saveSingleData(data) {
  return request({
    url: '/redPacket/saveSingleData',
    method: 'post',
    data
  })
}
// 修改多码红包
export function updateSingleData(data) {
  return request({
    url: '/redPacket/updateSingleData',
    method: 'post',
    data
  })
}
// 删除多码红包
export function deleteSingleData(data) {
  return request({
    url: '/redPacket/deleteSingleData',
    method: 'post',
    data
  })
}
// 多码红包开关
export function updateSingleStatus(data) {
  return request({
    url: '/redPacket/updateSingleStatus',
    method: 'post',
    data
  })
}
// 多码红包详情列表页数据
export function listSingleItemData(data) {
  return request({
    url: '/redPacket/listSingleItemData',
    method: 'post',
    data
  })
}
// 获取多码红包所有红包码
export function getSinglePasswordList(data) {
  return request({
    url: '/redPacket/getSinglePasswordList',
    method: 'post',
    data
  })
}

/** *****返利红包**********/
// list
export function getObtainList(data) {
  return request({
    url: '/redPacket/get/gave/pager',
    method: 'post',
    data
  })
}

// 获取返利设置
export function getObtainStage(data) {
  return request({
    url: '/redPacket/get/gave/stage',
    method: 'post',
    data
  })
}

// 保存返利设置
export function setObtainStage(data) {
  return request({
    url: '/redPacket/set/gave/stage',
    method: 'post',
    data
  })
}

// 校验手机号
export function verificationMobile(data) {
  return request({
    url: '/redPacket/gave/verification/mobile',
    method: 'post',
    data
  })
}

// 获取红包码
export function redPassword(data) {
  return request({
    url: '/redPacket/gave/get/password',
    method: 'post',
    data
  })
}

/** **********多码红包查询****************/
export function listSingleItemDataByKey(data) {
  return request({
    url: '/redPacket/listSingleItemDataByKey',
    method: 'post',
    data
  })
}
/** **********vip系统列表****************/
export function vipListData(data) {
  return request({
    url: '/vip/listData',
    method: 'post',
    data
  })
}
/** **********vip系统列表--新增****************/
export function vipSaveData(data) {
  return request({
    url: '/vip/saveData',
    method: 'post',
    data
  })
}
/** **********vip系统列表--删除****************/
export function vipDeleteData(data) {
  return request({
    url: '/vip/deleteData',
    method: 'post',
    data
  })
}
/** **********vip系统列表--开关获取****************/
export function vipGetStatus() {
  return request({
    url: '/vip/getStatus',
    method: 'post'
  })
}
/** **********vip系统列表--删除****************/
export function vipSetStatus(data) {
  return request({
    url: '/vip/setStatus',
    method: 'post',
    data
  })
}